const {ccclass, property} = cc._decorator;

interface Point{
    x: number,
    y: number,
}

@ccclass
export default class NewClass extends cc.Component {
    @property
    speed: number = 1000;

    start () {

    }

    changePosition(pos: Point) {
        this.node.x += pos.x
        this.node.y += pos.y
    }

    update (dt) {}
}
